const express = require('express');
const router = express.Router();


router.get('/', function (req, res) {
  res.json({ message: '/lamps' });
});
router.post('/', function (req, res) {
  
});
//
router.get('/params', function (req, res) {
  res.json({ message: '/lamps/params' });
});
//
router.get('/:id', function (req, res) {
  res.json({ message: '/lamps/'+req.params.id });
});
router.put('/:id', function (req, res) {
  
});
router.delete('/:id', function (req, res) {
  
});
//
router.get('/:id/params', function (req, res) {
  res.json({ message: '/lamps/'+req.params.id+'/params' });
});
//
router.get('/:id/profile', function (req, res) {
  res.json({ message: '/lamps/'+req.params.id+'/profile' });
});
//
router.put('/:id/dimming', function (req, res) {
  
});
router.put('/:id/switch', function (req, res) {
  
});
module.exports = router;
